import request from '@/utils/request'

// 查询优惠券模板列表
export function listCoupontem(query) {
  return request({
    url: '/order/coupontem/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券模板详细
export function getCoupontem(payId) {
  return request({
    url: '/order/coupontem/' + payId,
    method: 'get'
  })
}

// 新增优惠券模板
export function addCoupontem(data) {
  return request({
    url: '/order/coupontem',
    method: 'post',
    data: data
  })
}

// 修改优惠券模板
export function updateCoupontem(data) {
  return request({
    url: '/order/coupontem',
    method: 'put',
    data: data
  })
}

// 删除优惠券模板
export function delCoupontem(payId) {
  return request({
    url: '/order/coupontem/' + payId,
    method: 'delete'
  })
}

// 景区门票列表
export function getTicketListJQ() {
  return request({
    url: '/ticket/scenic/listCoupontem',
    method: 'get'
  })
}
// 活动门票列表
export function getTicketListHD() {
  return request({
    url: '/ticket/business/listCoupontem',
    method: 'get'
  })
}